﻿using System.Collections;
using Fabrication.Tests.TestClasses;
using NUnit.Framework;

namespace Fabrication.Tests
{
    [TestFixture]
    public class non_generic_collection_interfaces
    {
        [Test]
        public void should_set_ilist_properties_to_empty_list()
        {
            var builtItem = new FabricationScope()
                .Generate<SinglePropertyClass<IList>>();

            Assert.That(builtItem.Value, Is.Not.Null);
        }

        [Test]
        public void should_set_ienumerable_properties_to_empty_list()
        {
            var builtItem = new FabricationScope()
                .Generate<SinglePropertyClass<IEnumerable>>();

            Assert.That(builtItem.Value, Is.Not.Null);
        }
    }
}